package com.cy.pj.sys.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author YuBaoFu
 * @create 2025/05/29
 * @description
 */
@Mapper
public interface SysRoleMenuDao {

    int deleteObjectsByMenuId(Integer menuId);

    int deleteObjectsByRoleId(Integer roleId);

    int insertObjects(@Param("roleId") Integer roleId,@Param("menuIds") Integer[] menuIds);

    List<Integer> findMenuIdsByRoleIds(@Param("roleIds") Integer[] roleIds);


}
